package com.wang.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Classname DataSourcesConfig
 * @Description TODO
 * @Date 2024/5/29 11:19
 * @Created by pc
 */
@Configuration
public class DataSourcesConfig {
    @Bean
    @ConfigurationProperties(prefix = "spring.datasource")
    public DruidDataSource druidConfig(){
        return new DruidDataSource();
    }
}
